
part of 'LUMADelegatePlugin.dart';


T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

TaskModel _$TaskModelFromJson(Map<String, dynamic> json) {
  return _TaskModel.fromJson(json);
}

mixin _$TaskModel {
  String get title => throw _privateConstructorUsedError;
  String? get description => throw _privateConstructorUsedError;
  DateTime? get dueDate => throw _privateConstructorUsedError;
  TaskStatus get status => throw _privateConstructorUsedError;
  List<dynamic>? get membershipLists => throw _privateConstructorUsedError;
  String get id => throw _privateConstructorUsedError;

  
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  
  
  @JsonKey(includeFromJson: false, includeToJson: false)
  $TaskModelCopyWith<TaskModel> get copyWith =>
      throw _privateConstructorUsedError;
}

abstract class $TaskModelCopyWith<$Res> {
  factory $TaskModelCopyWith(TaskModel value, $Res Function(TaskModel) then) =
      _$TaskModelCopyWithImpl<$Res, TaskModel>;
  @useResult
  $Res call(
      {String title,
      String? description,
      DateTime? dueDate,
      TaskStatus status,
      List<dynamic>? membershipLists,
      String id});
}

class _$TaskModelCopyWithImpl<$Res, $Val extends TaskModel>
    implements $TaskModelCopyWith<$Res> {
  _$TaskModelCopyWithImpl(this._value, this._then);

  
  final $Val _value;
  
  final $Res Function($Val) _then;

  
  
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? title = null,
    Object? description = freezed,
    Object? dueDate = freezed,
    Object? status = null,
    Object? membershipLists = freezed,
    Object? id = null,
  }) {
    return _then(_value.copyWith(
      title: null == title
          ? _value.title
          : title 
              as String,
      description: freezed == description
          ? _value.description
          : description 
              as String?,
      dueDate: freezed == dueDate
          ? _value.dueDate
          : dueDate 
              as DateTime?,
      status: null == status
          ? _value.status
          : status 
              as TaskStatus,
      membershipLists: freezed == membershipLists
          ? _value.membershipLists
          : membershipLists 
              as List<dynamic>?,
      id: null == id
          ? _value.id
          : id 
              as String,
    ) as $Val);
  }
}

abstract class _$$TaskModelImplCopyWith<$Res>
    implements $TaskModelCopyWith<$Res> {
  factory _$$TaskModelImplCopyWith(
          _$TaskModelImpl value, $Res Function(_$TaskModelImpl) then) =
      __$$TaskModelImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String title,
      String? description,
      DateTime? dueDate,
      TaskStatus status,
      List<dynamic>? membershipLists,
      String id});
}

class __$$TaskModelImplCopyWithImpl<$Res>
    extends _$TaskModelCopyWithImpl<$Res, _$TaskModelImpl>
    implements _$$TaskModelImplCopyWith<$Res> {
  __$$TaskModelImplCopyWithImpl(
      _$TaskModelImpl _value, $Res Function(_$TaskModelImpl) _then)
      : super(_value, _then);

  
  
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? title = null,
    Object? description = freezed,
    Object? dueDate = freezed,
    Object? status = null,
    Object? membershipLists = freezed,
    Object? id = null,
  }) {
    return _then(_$TaskModelImpl(
      title: null == title
          ? _value.title
          : title 
              as String,
      description: freezed == description
          ? _value.description
          : description 
              as String?,
      dueDate: freezed == dueDate
          ? _value.dueDate
          : dueDate 
              as DateTime?,
      status: null == status
          ? _value.status
          : status 
              as TaskStatus,
      membershipLists: freezed == membershipLists
          ? _value._membershipLists
          : membershipLists 
              as List<dynamic>?,
      id: null == id
          ? _value.id
          : id 
              as String,
    ));
  }
}

@JsonSerializable()
class _$TaskModelImpl implements _TaskModel {
  const _$TaskModelImpl(
      {required this.title,
      required this.description,
      required this.dueDate,
      required this.status,
      required final List<dynamic>? membershipLists,
      required this.id})
      : _membershipLists = membershipLists;

  factory _$TaskModelImpl.fromJson(Map<String, dynamic> json) =>
      _$$TaskModelImplFromJson(json);

  @override
  final String title;
  @override
  final String? description;
  @override
  final DateTime? dueDate;
  @override
  final TaskStatus status;
  final List<dynamic>? _membershipLists;
  @override
  List<dynamic>? get membershipLists {
    final value = _membershipLists;
    if (value == null) return null;
    if (_membershipLists is EqualUnmodifiableListView) return _membershipLists;
    
    return EqualUnmodifiableListView(value);
  }

  @override
  final String id;

  @override
  String toString() {
    return 'TaskModel(title: $title, description: $description, dueDate: $dueDate, status: $status, membershipLists: $membershipLists, id: $id)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$TaskModelImpl &&
            (identical(other.title, title) || other.title == title) &&
            (identical(other.description, description) ||
                other.description == description) &&
            (identical(other.dueDate, dueDate) || other.dueDate == dueDate) &&
            (identical(other.status, status) || other.status == status) &&
            const DeepCollectionEquality()
                .equals(other._membershipLists, _membershipLists) &&
            (identical(other.id, id) || other.id == id));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(runtimeType, title, description, dueDate,
      status, const DeepCollectionEquality().hash(_membershipLists), id);

  
  
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$TaskModelImplCopyWith<_$TaskModelImpl> get copyWith =>
      __$$TaskModelImplCopyWithImpl<_$TaskModelImpl>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$TaskModelImplToJson(
      this,
    );
  }
}

abstract class _TaskModel implements TaskModel {
  const factory _TaskModel(
      {required final String title,
      required final String? description,
      required final DateTime? dueDate,
      required final TaskStatus status,
      required final List<dynamic>? membershipLists,
      required final String id}) = _$TaskModelImpl;

  factory _TaskModel.fromJson(Map<String, dynamic> json) =
      _$TaskModelImpl.fromJson;

  @override
  String get title;
  @override
  String? get description;
  @override
  DateTime? get dueDate;
  @override
  TaskStatus get status;
  @override
  List<dynamic>? get membershipLists;
  @override
  String get id;

  
  
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$TaskModelImplCopyWith<_$TaskModelImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
